﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminAddnews.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminAddnews" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h1>
        <asp:Label ID="lbAdminNews" runat="server" Text="Nyheter Leder"></asp:Label>
    </h1>
     <table cellspacing="0" cellpadding="0" class="data-table">
        <tbody>
            <tr>
                <td colspan="2">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="LoginUserValidationGroup" />
                </td>
            </tr>
            <tr>
                 <td align="right">
                    <asp:Label ID="lbTitleNews" runat="server">Tittel Nyheter:</asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtTitleNews" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rRegion" runat="server" ControlToValidate="txtTitleNews"
                        ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Name is required."
                        ToolTip="Name is required." Text="*" />
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbContentNews" runat="server">Innhold Nyheter:</asp:Label>
                </td>
                <th>
                   <FCKeditorV2:FCKeditor ID="FCKContent" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px"></FCKeditorV2:FCKeditor>  
                </th>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lbTypeNews" runat="server">Typen Nyheter:</asp:Label>
                </td>
                <th>
                    <asp:TextBox ID="txtTypeNews" runat="server" CssClass="textEntry"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="rRegionCode" runat="server" ControlToValidate="txtTypeNews"
                        ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Region code is required."
                        ToolTip="Region code is required." Text="*" />
                </th>
            </tr>                        
            <tr>
                <td>
                </td>
                <th>
                    <asp:Button ID="btnSave" runat="server" Text="Lagre" ValidationGroup="LoginUserValidationGroup"
                        OnClick="btnSave_Click" />
                    &nbsp;<asp:Button ID="btnapply" runat="server" Text="Gjelder" 
                        onclick="btnapply_Click" />
&nbsp;<asp:Button ID="btnBack" runat="server" Text="Avbryt" OnClick="btnBack_Click" />
                </th>
            </tr>
        </tbody>
    </table>
</asp:Content>
